package cn.tedu.egmvc2.mapper;

import cn.tedu.egmvc2.pojo.entity.Notice;
import cn.tedu.egmvc2.pojo.vo.NoticeDetailInfoVO;
import cn.tedu.egmvc2.pojo.vo.NoticeListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NoticeMapper {
    int insertNotice(Notice notice);

    List<NoticeListVO> selectNotice(@Param("title") String title,
                                    @Param("type") Integer type);

    NoticeDetailInfoVO detail(Long id);
}
